<div class="workplace">
  <p style="text-align: right;"><a href="<?php echo base_url()?>admin/home/ThemBaiViet"><button style="margin-top: 10px" id="ThemBaiViet" class="btn btn-danger" type="button">Thêm bài viết mới</button></a></p>
  <div class="row-fluid">                
        <div class="span12">                    
            <div class="head">
                <div class="isw-grid"></div>
                <h1>Danh sách bài viết</h1>                               
                <div class="clear"></div>
            </div>
            <div class="block-fluid table-sorting">
                <table cellpadding="0" cellspacing="0" width="100%" class="table" id="tSortable_2">
                    <thead>
                        <tr>
                            <th><input type ="checkbox" id="checkallTinTuc"/></th>
                            <th width       ="3%">ID</th>
                            <th width       ="15%">Tiêu Đề</th>
                            <th width       ="15%">Tóm Tắt</th>
                            <th width       ="15%">Nội Dung</th>   
                            <th width       ="15%">Từ Khóa</th>
                            <th width       ="10%">Ngày đăng</th>
                            <th width       ="10%">Ẩn/Hiện</th>
                            <th width       ="10%"></th>

                        </tr>
                    </thead>
                    <tbody>
						<?php 
							foreach ($data as $items) {
						?>
							<tr>
                                <td><input type="checkbox" class="ckTinTuc" name="ckTinTuc" value="<?php echo $items['TinTuc_id'] ?>"/></td>
                                <td class ="align-center"><?php echo $items['TinTuc_id'] ?></td>
                                <td><?php echo $items['subTieuDe']?></td>
                                <td><?php echo strip_tags ($items['subTomTat']);?></td>
                                <td><?php echo Application::CatChim(strip_tags($items['subNoiDung']), 100);?></td>
                                <td><?php echo strip_tags ($items['subKeywords']);?></td>
                                <td><?php echo $items['LastUpdate']?></td>

                                <td><input type="checkbox" <?php 
                                    if($items['AnHien'] =='1') 
                                        echo "checked";

                                ?> disabled /> </td>

								<td>
                                    <a href ="<?php echo base_url()?>admin/tintuc/edit/<?php echo $items['TinTuc_id']?>" class="table-icon edit" title="Edit"></a>
                                    <span class="deleteTintuc"><a class="table-icon delete" value = "<?php echo $items['TinTuc_id']?>" title="Delete"></a></span>
								
								</td>
							</tr>

						<?php }?>

					</tbody>
                </table>                
            </div>
            <div class ="clear"></div>
            <button style="margin-top: 10px" id="xoaTinDuocChon" class="btn btn-danger" type="button">Xóa tin được chọn</button>
			
        </div>                                
        
    </div>       

    <div class ="full_w">
        <div class ="clear"></div>
        <div class ="pagination" style="margin-left:10px"><ul><?php echo $this->pagination->create_links();?> </ul></div>
	</div>       
    
    <div class ="dr"><span></span></div>
</div>

<div class="dialog" id="b_popup_4" style="display: none;" title="Thông báo">                                 
    <div class="block">
        <p>Bạn có muốn xóa tất cả những tin được chọn.</p>
    </div>
</div> 


<div class="dialog" id="dialogThongBao" style="display: none;" title="Thông báo">                                 
    <div class="block">
        <p>Bạn chưa chọn tin nào để xóa.</p>
    </div>
</div> 
 

<div class="dialog" id="popoverDelete1Item" style="display: none;" title="Thông báo">                                
    <div class="block">
        <p>Bạn có muốn xóa tin được chọn.</p>
    </div>
</div> 